package com.lagou.edu.utils;

import com.lagou.edu.factory.BeanFactory_Annotation;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class LoadListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        System.out.println("begin");
        BeanFactory_Annotation.initBeanIoc("com.lagou.edu");
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {
        System.out.println("end");
    }
}
